package com.szw.dlyk.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.szw.dlyk.domain.Product;
import com.szw.dlyk.service.ProductService;
import com.szw.dlyk.mapper.ProductMapper;
import jakarta.annotation.Resource;
import org.springframework.stereotype.Service;

import java.util.List;

/**
* @author asus
* @description 针对表【t_product(产品表)】的数据库操作Service实现
* @createDate 2024-01-21 18:16:51
*/
@Service
public class ProductServiceImpl extends ServiceImpl<ProductMapper, Product>
    implements ProductService{

    @Resource
    private ProductMapper productMapper;

    @Override
    public List<Product> getAllOnSaleProduct() {
        return productMapper.selectAllOnSaleProduct();
    }
}




